const initialState = {
    isLoading:false
}
export default function Loading(state = {...initialState} ,action) {

    switch (action.type){
        case "LOADING":
            return {...state,isLoading:action.payload}
        default:
            return {...state}
    }
}
